package com.woniuxy03;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-06-04 16:31
 */
public class Test03 {
    public static void main(String[] args) {
        String str = "abcefg";
        StringBuilder sb=new StringBuilder(str);
//        sb.insert(1,"xyz");
        sb.delete(1,3);
        System.out.println(sb);

        //和String不是兼容类型,可以转换
        String newString = sb.toString();


    }
}
